{% extends "framework.html" %}
{% block main %}
    <h2 style="margin:5px 0 10px 30px">
        tag:<b style="font-size:16px;color:red">{{tag}}</b>
    </h2>

    <ul id="article_list">
    {% for article in articles %}
        <li>
        <a href="viewArticle?key={{ article.key }}">{{ article.title }}</a>  : {{ article.date }}
        </li>
    {% endfor %}
    </ul>
    
    <div class="paged_menu">
    页次:<b class="red">{{ pageInfo.pageNo }}</b>/{{pageInfo.pageCount}}
    记录数:{{pageInfo.recordCount}}
    {% if pageInfo.hasPrevPage %}　
        <a href="tag?tag={{tag}}&pageNo={{pageInfo.prevPage}}">[上页]</a>
    {% endif %}
    {% if pageInfo.hasNextPage %}　
        <a href="tag?tag={{tag}}&pageNo={{pageInfo.nextPage}}">[下页]</a>
    {% endif %}
&nbsp;&nbsp;&nbsp;&nbsp;
    {% for iPageCount in pageInfo.pageCountRange %}
        {%ifequal pageInfo.pageNo  iPageCount %}
            <b class="red">{{iPageCount}}
            </b>
        {%else%}
            <a href="tag?tag={{tag}}&pageNo={{iPageCount}}">{{iPageCount}}
            </a>
        {%endifequal%}
    {% endfor %}

    </div>
    
{% endblock %}
